import request from "@/utils/request";

// 查询高企入库申请列表
export function listApplication(query) {
  return request({
    url: "/kjy/storageApplication/list",
    method: "get",
    params: query,
  });
}

// 查询高企入库申请详细
export function getApplication(id) {
  return request({
    url: "/kjy/storageApplication/" + id,
    method: "get",
  });
}

// 新增高企入库申请
export function addApplication(data) {
  return request({
    url: "/kjy/storageApplication",
    method: "post",
    data: data,
  });
}
// 新增高企入库申请
export function adminAddApplication(data) {
  return request({
    url: "/kjy/storageApplication/adminAdd",
    method: "post",
    data: data,
  });
}
// 修改高企入库申请
export function updateApplication(data) {
  return request({
    url: "/kjy/storageApplication",
    method: "put",
    data: data,
  });
}

// 删除高企入库申请
export function delApplication(id) {
  return request({
    url: "/kjy/storageApplication/" + id,
    method: "delete",
  });
}

// 查询企业列表
export function listEnterprise(query) {
  return request({
    url: "/kjy/storageApplication/listEnterprise",
    method: "get",
    params: query,
  });
}
